package com.pth.model;

public class Comment {

	private int id;
	
	private String content;
	
	private String commenttime;
	
	private String photo;
	
	private Huati huati;
	
	
	public int getId() {
		return id;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((commentname == null) ? 0 : commentname.hashCode());
		result = prime * result
				+ ((commenttime == null) ? 0 : commenttime.hashCode());
		result = prime * result + ((content == null) ? 0 : content.hashCode());
		result = prime * result + ((email == null) ? 0 : email.hashCode());
		result = prime * result + ((huati == null) ? 0 : huati.hashCode());
		result = prime * result + id;
		result = prime * result + ((photo == null) ? 0 : photo.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Comment other = (Comment) obj;
		if (commentname == null) {
			if (other.commentname != null)
				return false;
		} else if (!commentname.equals(other.commentname))
			return false;
		if (commenttime == null) {
			if (other.commenttime != null)
				return false;
		} else if (!commenttime.equals(other.commenttime))
			return false;
		if (content == null) {
			if (other.content != null)
				return false;
		} else if (!content.equals(other.content))
			return false;
		if (email == null) {
			if (other.email != null)
				return false;
		} else if (!email.equals(other.email))
			return false;
		if (huati == null) {
			if (other.huati != null)
				return false;
		} else if (!huati.equals(other.huati))
			return false;
		if (id != other.id)
			return false;
		if (photo == null) {
			if (other.photo != null)
				return false;
		} else if (!photo.equals(other.photo))
			return false;
		return true;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getCommenttime() {
		return commenttime;
	}

	public void setCommenttime(String commenttime) {
		this.commenttime = commenttime;
	}

	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	public Huati getHuati() {
		return huati;
	}

	public void setHuati(Huati huati) {
		this.huati = huati;
	}

	public String getCommentname() {
		return commentname;
	}

	public void setCommentname(String commentname) {
		this.commentname = commentname;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	private String commentname;
	
	private String email;
	
	
}
